<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:mo="https://gitee.com/aun/Timo">
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
</head>
<body>
    <div class="layui-form timo-compile">
    <form th:action="@{/sync/nacosdefaultconf/save}">
        <input type="hidden" name="id" th:if="${nacosDefaultConf}" th:value="${nacosDefaultConf.id}">
        <div class="layui-form-item">
            <label class="layui-form-label">所属环境</label>
            <div class="layui-input-inline">
                <select class="timo-search-select layui-input" name="env_type" mo:dict="ENV_NAMES" mo-selected="${nacosDefaultConf?.env_type}"></select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">默认配置内容</label>
            <div class="layui-input-inline">
                <textarea class="layui-textarea" name="content" placeholder="请输入默认配置内容" th:text="${nacosDefaultConf?.content}" rows="25"></textarea>
            </div>
        </div>
        <div class="layui-form-item timo-finally">
            <button class="layui-btn ajax-submit"><i class="fa fa-check-circle"></i> 保存</button>
            <button class="layui-btn btn-secondary close-popup"><i class="fa fa-times-circle"></i> 关闭</button>
        </div>
    </form>
</div>
<script th:replace="/common/template :: script"></script>
</body>
</html>